//
//  AboutUsVc.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/26.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#define blackFrontName  @"TrebuchetMS-Bold"//黑体

#import "AboutUsVc.h"
#import "BdTV.h"
#import "UIView+circular.h"
#import "WebVC.h"
#import "ErWeiMaView.h"


@interface AboutUsVc ()<UITextViewDelegate>
@property (weak, nonatomic) IBOutlet UIView *img;
@property (weak, nonatomic) IBOutlet UILabel *lab;
@property (nonatomic,strong)ErWeiMaView *erweimaView;
@property (weak, nonatomic) IBOutlet UITextView *textView;

@end

@implementation AboutUsVc

- (void)viewDidLoad {
    [super viewDidLoad];

    
    [self.titleView setMianTitle:@"关于我们"];
    [[self.titleView doneBtn]setHidden:YES];
    [[self.titleView doneBtn] removeFromSuperview];
    
     [self.lab setFont:[UIFont fontWithName:blackFrontName size:17]];
    [self.img imgViewToCircular:self.img];
    
    self.textView.editable = NO;
    self.erweimaView = [ErWeiMaView createView];
    
    
    
}


- (IBAction)btnOnClick:(UIButton *)sender {
    if (sender.tag == 0) { //访问官网
        
        WebVC *vc = [WebVC new];
        vc.hidesBottomBarWhenPushed = YES;
        [self.navigationController pushViewController:vc animated:YES];
        
    }else if (sender.tag == 1){//二维码
        
        [self.erweimaView showInView:self.view];
    }
}

- (BOOL)textViewShouldBeginEditing:(UITextView *)textView{
    return NO;
}

@end
